package com.ioc.importselector;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @author cyt
 * @create 2020-07-30 上午 12:18
 */
public class Selector implements ImportSelector  {
    /**
     * @param importingClassMetadata : 当前类的注解信息
     * @return
     */
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        /*
        填写类得全类名
         */
        return new String[]{
                "com.ioc.color.Blue",
                "com.ioc.color.Red"
        };
    }
}
